package org.sgsm.dungeon.generator.method;

import java.util.ArrayList;
import java.util.List;

import org.sgsm.dungeon.generator.ObjectType;
import org.sgsm.dungeon.generator.util.util.Generator;

public class Method extends Generator
{
  protected String _MethodName = "";
  protected ObjectType _ObjetOut = null;
  protected List<ObjectType> _ObjetIn;

  public Method()
  {
    _ObjetIn = new ArrayList<ObjectType>();
  }

  public void setMethodName(String pMethodName)
  {
    this._MethodName = pMethodName;
  }

  public String getMethodName()
  {
    return _MethodName;
  }

  public void setObjetOut(ObjectType objetOut)
  {
    this._ObjetOut = objetOut;
  }

  public ObjectType getObjetOut()
  {
    return _ObjetOut;
  }

  public void setObjetIn(List<ObjectType> objetIn)
  {
    this._ObjetIn = objetIn;
  }

  public List<ObjectType> getObjetIn()
  {
    return _ObjetIn;
  }

  public boolean isOut()
  {
    return !_ObjetOut.getName().equals("void");
  }
}
